﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "GcmpGeometryInterface.h"
#include "OwnerPtr.h"
#include "INurbsSurface.h"

namespace gcmp
{
    class ICurve3d;

    class GCMP_GEOMETRY_INTERFACE_EXPORT GmSurfaceBuilder
    {
    public:
        /// \brief 产生四边曲面，四条曲线必须在容差范围内首尾连接
        /// \param pUCurve0   U向第一条曲线
        /// \param pUCurve1   U向第二条曲线
        /// \param pVCurve0   V向第一条曲线
        /// \param pVCurve1   V向第二条曲线
        /// \param dDistanceEpsilon  距离容差
        /// \return NurbsSurface
        static OwnerPtr<INurbsSurface> CreateFourSidedSurface(
            const ICurve3d* pUCurve0, const ICurve3d* pUCurve1,
            const ICurve3d* pVCurve0, const ICurve3d* pVCurve1,
            double dDistanceEpsilon = 0.1);

     };
}
